using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace com.exceptionalsoftware.spacetime.KML
{
	[Serializable()]
    [XmlType(TypeName = "UpdateType")]
    public class Update : ObjectType
	{
        private string targetHrefField;
        private object[] itemsField;

        [XmlElement(ElementName = "targetHref", DataType = "anyURI")]
        public string targetHref
        {
            get { return this.targetHrefField; }
            set { this.targetHrefField = value; }
        }

        [XmlElement(ElementName = "Change", Type = typeof(Change))]
        [XmlElement(ElementName = "Create", Type = typeof(Create))]
        [XmlElement(ElementName = "Delete", Type = typeof(Delete))]
        public object[] Items
        {
            get { return this.itemsField; }
            set { this.itemsField = value; }
        }
    }
}